﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for cls_tbQuyen_Muc_Detail
/// </summary>
public class cls_tbQuyen_Muc_Detail
{
	public cls_tbQuyen_Muc_Detail()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static DataTable Get(string Muc_Id, int F_STTQUYEN)
    {
        DataTable table = new DataTable();
        av.dal.SqlDataProvider clsSQL = new av.dal.SqlDataProvider();
        SqlParameter[] parameter = new SqlParameter[2];
        parameter[0] = new SqlParameter("@Muc_Id", Muc_Id);
        parameter[1] = new SqlParameter("@F_STTQUYEN", F_STTQUYEN);
        try
        {
            table = clsSQL.GetDataFrom("tbQuyen_Muc_Detail_Get", CommandType.StoredProcedure, parameter);

        }
        catch { }
        return table;
    }
    public static bool SeeMenu(string Muc_Id, int F_STTQUYEN)
    {
        bool rs = false;
        DataTable dt = new DataTable();
        dt = Get(Muc_Id, F_STTQUYEN);
        if (dt.Rows.Count == 1)
        {
            rs = true;
        }
        return rs;
    }
}